package shoppingmall.reception.pojo;

/**
 * 实体类 对应数据库表tb_user表 (购物平台会员用户, 与后台User实体类一致)
 */
public class User {
    private int id;  //会员用户id 主键
    private String username;  //会员用户名
    private String password;  //会员用户密码
    private String nickname;  //会员用户昵称
    private String email;  //用户邮箱
    private String phone;  //用户手机
    private String avatar;  //用户头像
    private String createTime;  //用户创建时间
    private String updateTime;  //用户操作更新时间

    public User() {
    }

    public User(int id, String username, String password, String nickname, String email, String phone, String avatar, String createTime, String updateTime) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.email = email;
        this.phone = phone;
        this.avatar = avatar;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}
